V404 — RESUME CAMPAIGN + PROTAGONIST MANUAL SAVE
================================================
Base: V403, V402, V401, V399. Original data/artwork and character logic preserved.

CRASH FIX
* V403 introduced backticks into a Lua comment, splitting the UI.MENU script.
  Those accidental delimiters caused both errors reported on launch:
  "end expected to close function" and "syntax error near and".
* All embedded Lua chunks in the V404 bundled menu were syntax-checked.

SAVE GAME (WHILE PLAYING)
* Open the in-game Esc / Options menu and select Save Game.
* Player 1 / the logged-in multiplayer HOST can save the current full game
  while the protagonist (slot 1) has HP > 0. Clients cannot create host saves.
* Restored the native Save and Overwrite confirmation buttons, which had been
  removed by older Save-disabled UI patches. Pressing Enter in the name field
  works too. A saved-game name contains the logged-in account and the selected
  SoA, ToB, or TBP II campaign; no manual folder redirect or CHR export.
* Manual full-game saves made with only the protagonist use a SOLO_ name prefix.
  If any multiplayer guest characters are present, the manual save uses PARTY_
  instead, because native BG2 saves the entire currently playing party.
* Account filtering protects overwrite from another logged-in account's save.
* Save remains disabled when the protagonist is dead, during cutscenes,
  transition, or when no account/campaign is selected.

RESUME CAMPAIGN
* Resume Campaign should be clickable as soon as login is authenticated.
  It opens the native Load screen, choosing the newest game matching the
  logged-in account and campaign. Without a selected campaign it can load the
  newest save from that account's SoA/ToB/TBP campaigns.
* Existing saved games are not generated or changed by Resume.
* A compatible saved game must exist first.

UNCHANGED
* V402 automatic solo protagonist checkpoint guard and timer (first after
  30 seconds of eligible play; then every 5 minutes) remains unchanged.
* The character Import popup offers Character File only.
* Native character Import/Export and 5-letter+2-digit ownership filtering.
* /characters/ remains the correct native folder; no restore/move/respawn cycles.
* Account credentials, UI artwork, engine.lua, and the user's game files.

INSTALL — RECOMMENDED FOR AN ALREADY INSTALLED V403
1. Fully close Baldur's Gate II.
2. Extract this entire ZIP to a normal writable folder.
3. Run APPLY_V404_SAVE_RESUME_UI_ONLY.bat, choose the BG2 INSTALLATION folder
   containing BaldurII.exe, and let it update override/UI.MENU only.
   The Documents\BaldursGate2Online profile is left untouched by this patch.
4. Run the game, log in, check Resume Campaign, and save from the Esc game menu.

FULL INSTALL (IF NECESSARY)
* Instead of the UI-only patch, run SETUP_IN_GAME_ACCOUNTS.bat, select your BG2
  installation and the engine.lua-selected BG2 profile containing Baldur.lua.
* Full account setup also configures account router components. UI-only is
  recommended for this specific menu/saving bug.
* The separate engine.lua backup the user keeps is never modified.

TESTS
* Lua syntax checks for all global backtick-delimited scripts.
* Simulated BG2 Lua tests: live host, dead protagonist, guest party, manual new
  save and overwrite, non-owner overwrite rejected, transition/cutscene guard.
* UI-only patch tested twice against a simulated V403 installation.
* 19 selected versioned regression tests passed prior to final packaging.
* BG2/Windows runtime save and load success must still be confirmed in-game.
